package com.ruoyi.project.check.controller;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.check.domain.HgCheck;
import com.ruoyi.project.check.service.RgCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;

@RestController
@RequestMapping("/rgCheck")
public class RgCheckController  {
    @Autowired
    private RgCheckService rgCheckService;

    /**
     * 花式查询 模糊查询 检查单表和检查项目表
     * @param hgCheck 内含各种搜索信息
     * @return
     */
    @GetMapping("/findById")
    public AjaxResult findById(HgCheck hgCheck){

        System.out.println(hgCheck);
        System.out.println(rgCheckService.findById(hgCheck));

        return AjaxResult.success(rgCheckService.findById(hgCheck));
    }
}
